<?php
/**
 * 
 */
class ParamFdkBasis extends AppModel {
  
	var $name = 'ParamFdkBasis';
  
	var $displayField = 'id';  
  
	var $validate = array(
      
		'alpha' => array(
        'range' => array(
          'rule' => array('validateRange', // Custom function to do validation: uses app_model::validateRange() 
                          'alpha',  // field to validate
                           0,       // lower bound
                           1,       // upper bound
                           true, // upperBoundIsOK  
                           true), // lowerBoundIsOK  
          'message' => 'Value must be between 0 and 1 inclusive.',
        ),
        'notempty' => array(
          'rule' => array('notempty'),
          'message' => 'This field cannot be empty.'
        ),
        'numeric' => array(
          'rule' => array('numeric'),
          'message' => 'Value must be a number between 0 and 1 inclusive.',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),

		),
    'param_fdk_filter_id' => array(
        'notempty' => array(
          'rule' => array('notempty'),
          'message' => 'This value cannot be empty.',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
    )
	);
  
  
  
  ///////////////////////////////////////////////////////////////////////////////////////////////////////
	//The Associations below have been created with all possible keys, those that are not needed can be removed

  var $hasOne = array(
		'ParamFdk' => array(
			'className' => 'ParamFdk',
			'foreignKey' => 'param_fdk_base_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'ParamFdkFavorite' => array(
			'className' => 'ParamFdkFavorite',
			'foreignKey' => 'param_fdk_base_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
  
	var $belongsTo = array(
		'ParamFdkFilter' => array(
			'className' => 'ParamFdkFilter',
			'foreignKey' => 'param_fdk_filter_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
} ////////////////////////////// end class //////////////////////////////
